﻿#include "CmdSurfaceElectricFieldMapSidebarResultDataChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSurfaceElectricFieldMapSidebarResultDataChanged::CmdSurfaceElectricFieldMapSidebarResultDataChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSurfaceElectricFieldMapSidebarResultDataChanged::~CmdSurfaceElectricFieldMapSidebarResultDataChanged()
    {
    }

    bool CmdSurfaceElectricFieldMapSidebarResultDataChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_surfaceElectricFieldMapSidebarResultDataChanged(m_windowId, m_index);
        return true;
    }

    void CmdSurfaceElectricFieldMapSidebarResultDataChanged::undo()
    {
    }

    void CmdSurfaceElectricFieldMapSidebarResultDataChanged::redo()
    {
        // execute();
    }

    void CmdSurfaceElectricFieldMapSidebarResultDataChanged::setSurfaceElectricFieldMapSidebarResultDataChanged(int windowId, int index)
    {
        m_windowId = windowId;
        m_index = index;
    }

} // namespace PostCommand
